//图片上传
var opts = {
    url: "/Admins/File/uploadimg",
    type: "POST",
    beforeSend: function () {
        $("#loading").attr("class", "am-icon-spinner am-icon-pulse");
    },
    success: function (result, status, xhr) {
        if (result.status == "0") {
            alert(result.info);
            $("#loading").attr("class", "am-icon-cloud-upload");
            return false;
        }

        //alert(result.info);
        $("input[name='image']").val(result.info);
        $("#img_show").attr('src', result.info);
        $("#loading").attr("class", "am-icon-cloud-upload");
    },
    error: function (result, status, errorThrown) {
        alert('文件上传失败！');
    }
};

$('#thumb_upload').fileUpload(opts);

/*<style>
/!*搜索时间插件增加样式*!/
.dropdown-menu {
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    border: 1px solid rgba(0, 0, 0, .15);
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
</style>*/

